import request from '@/utils/request'

// 查询标签信息列表
export function listDealTagsInfo(query) {
  return request({
    url: '/tags/dealTagsInfo/list',
    method: 'get',
    params: query
  })
}

// 查询标签信息详细
export function getDealTagsInfo(id) {
  return request({
    url: '/tags/dealTagsInfo/' + id,
    method: 'get'
  })
}

// 保存标签信息
export function saveDealTagsInfo(data) {
  return request({
    url: '/tags/dealTagsInfo/save',
    method: 'post',
    data: data
  })
}

// 删除标签信息
export function delDealTagsInfo(id) {
  return request({
    url: '/tags/dealTagsInfo/' + id,
    method: 'delete'
  })
}

// 导出标签信息
export function exportDealTagsInfo(query) {
  return request({
    url: '/tags/dealTagsInfo/export',
    method: 'get',
    params: query
  })
}

// 获取tree
export function getTreeData(query) {
  return request({
    url: '/tags/dealTagsInfo/getTreeData',
    method: 'get',
    params: query
  })
}

// 下拉树
export function getSelectTree(configureId) {
  return request({
    url: '/tags/dealTagsInfo/getSelectTree/' + configureId,
    method: 'get'
  })
}
